home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / alib / setattrs.c < prev   
C/C++ Source or Header  |  1996-09-12  |  2KB  |  79 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: setattrs.c,v 1.1 1996/08/28 17:52:29 digulla Exp $
  4.     $Log: setattrs.c,v $
  5.     Revision 1.1  1996/08/28 17:52:29  digulla
  6.     First step to implement amiga.lib
  7.     BOOPSI Utility functions
  8.  
  9.  
  10.     Desc:
  11.     Lang: english
  12. */
  13. #include <intuition/classes.h>
  14. #include <intuition/intuitionbase.h>
  15. #include <stdarg.h>
  16.  
  17. extern struct IntuitionBase * IntuitionBase;
  18.  
  19. /*****************************************************************************
  20.  
  21.     NAME */
  22.     #include <intuition/classusr.h>
  23.     #include <clib/intuition_protos.h>
  24.  
  25.     ULONG SetAttrs (
  26.  
  27. /*  SYNOPSIS */
  28.     APTR          object,
  29.     unsigned long tag1,
  30.     ...          )
  31.  
  32. /*  FUNCTION
  33.     Changes several attributes of an object at the same time. How the
  34.     object interprets the new attributes depends on the class.
  35.  
  36.     INPUTS
  37.     object - Change the attributes of this object
  38.     tag1 - The first of a list of attribute/value-pairs. The last
  39.         attribute in this list must be TAG_END or TAG_DONE.
  40.         The value for this last attribute is not examined (ie.
  41.         you need not specify it).
  42.  
  43.     RESULT
  44.     Depends in the class. For gadgets, this value is non-zero if
  45.     they need redrawing after the values have changed. Other classes
  46.     will define other return values.
  47.  
  48.     NOTES
  49.     This function sends OM_SET to the object.
  50.  
  51.     EXAMPLE
  52.  
  53.     BUGS
  54.  
  55.     SEE ALSO
  56.     NewObject(), DisposeObject(), GetAttr(), MakeClass(),
  57.     "Basic Object-Oriented Programming System for Intuition" and
  58.     "boopsi Class Reference" Dokument.
  59.  
  60.     INTERNALS
  61.  
  62.     HISTORY
  63.     29-10-95    digulla automatically created from
  64.                 intuition_lib.fd and clib/intuition_protos.h
  65.  
  66. *****************************************************************************/
  67. {
  68.     va_list args;
  69.     ULONG   retval;
  70.  
  71.     va_start (args, tag1);
  72.  
  73.     retval = SetAttrsA (object, (struct TagItem *)&tag1);
  74.  
  75.     va_end (args);
  76.  
  77.     return (retval);
  78. } /* SetAttrs */
  79.